#ifndef __IPCLOGICMANAGER_H__
#define __IPCLOGICMANAGER_H__

#include "logicmanager.h"
#include "asycop.h"

class IPCLogicManager : public AsyCop
{
    Q_OBJECT
public:
    LogicManager *mLogic;
public:
    IPCLogicManager()
    {
        mLogic = new LogicManager;
        init();
    };
    ~IPCLogicManager()
    {
        if(mLogic)
            delete mLogic;
    };
    virtual int do_request(QString &cmd, QByteArray &args);
    virtual int init();

private slots:
    void onSendData(const QString &ip, const QByteArray &data);// send the data to the connection specified by ip
    void onSendServerData(const QByteArray &data);    
};



#endif //__IPCLOGICMANAGER_H__
